package com.smedi.ismedi.organization.core.infrastructure.enumerate;

public enum ProjectOrganizationTypeEnum {
    PROJECT_ORGANIZATION("PROJECT_ORGANIZATION", "项目组织"),

    ORGANIZATION_UNIT("ORGANIZATION_UNIT", "本单位"),

    EXTERNAL_UNIT("EXTERNAL_UNIT", "外部单位（公司）"),

    DEPARTMENT("DEPARTMENT", "部门");

    private String name;

    private String value;

    ProjectOrganizationTypeEnum(String value, String name) {
        this.name = name;
        this.value = value;
    }

    public static String getName(String value) {
        for (ProjectOrganizationTypeEnum c : ProjectOrganizationTypeEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
